-- GENERATED SPELL FOR [Frostfeather Screecher] --


function spell0_29792(pUnit, Event) --@Piercing Screech,Self--
pUnit:FullCastSpellOnTarget(57815,pUnit)
pUnit:RegisterEvent('Sorts_29792', 590, 1)
end

function Sorts_29792(pUnit, Event)
local choix_sorts_29792 = math.random(0, 0)
if choix_sorts_29792 == 0 then
pUnit:RegisterEvent('spell0_29792', 1, 1)
end
end

function mob29792_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29792', math.random(1500, 3000), 1)
end

function mob29792_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29792_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29792_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29792, 1, 'mob29792_Action')
RegisterUnitEvent(29792, 2, 'mob29792_Leave')
RegisterUnitEvent(29792, 3, 'mob29792_Kill')
RegisterUnitEvent(29792, 4, 'mob29792_Die')
